package com.tj.bo.common.conf.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: binary-option
 * @description
 * @author: binary
 * @create: 2020-06-17 10:39
 **/
@Component
@ConfigurationProperties(prefix = "redis")
public class RedisProperties {

    private String host;
    private Integer port;
    private String password;
    private Integer maxActive;
    private Integer maxIdle;

    public String getHost() {
        return host;
    }

    public RedisProperties setHost(String host) {
        this.host = host;
        return this;
    }

    public Integer getPort() {
        return port;
    }

    public RedisProperties setPort(Integer port) {
        this.port = port;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public RedisProperties setPassword(String password) {
        this.password = password;
        return this;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public RedisProperties setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
        return this;
    }

    public Integer getMaxIdle() {
        return maxIdle;
    }

    public RedisProperties setMaxIdle(Integer maxIdle) {
        this.maxIdle = maxIdle;
        return this;
    }
}
